<?php
namespace haibao\cms\model\data;

class VideoCategory extends Base{
    const STATUS_ENABLE = 1;
    const STATUS_DELETE = 0;
    /**
     * 顶级分类id值
     */
    const ROOT_PARENT_ID = 0;
    /**
     * 父级Id
     */
    public $ParentId;
    /**
     * 分类名称
     */
    public $CategoryName;
    /**
     * 图片Id
     */
    public $PicId;
    /**
     * 分类描述
     */
    public $CategoryDesc;
    /**
     * 状态
     */
    public $Status;
    /**
     * 排序
     */
    public $OrderNo;
    
    public function __construct(){
        parent::__construct();
        
        $this->intField('ParentId', 'ParentId', true);
        $this->stringField('CategoryName', 'CategoryName', true);
        $this->intField('PicId', 'PicId', true);
        $this->stringField('CategoryDesc', 'CategoryDesc');
        $this->intField('OrderNo', 'OrderNo');
        $this->intField('Status', 'Status', true);
        $this->setTableName('VideoCategory');
    }
}